/*
 * eventoVentanaInterna.java
 *
 * Created on 23 de mayo de 2007, 08:44 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package legajopersonal;

import sistemarrhh.SistemaRRHH;

/**
 *
 * @author Administrador
 */
   public class eventoVentanaInterna extends javax.swing.event.InternalFrameAdapter {
	
	public eventoVentanaInterna(javax.swing.JMenuBar mnBar,SistemaRRHH ven) {
            this.mnBar = mnBar;
            this.ven = ven;
            //Associate dummy mouse listeners
            //Otherwise mouse events pass through
            javax.swing.event.MouseInputAdapter adapter = new javax.swing.event.MouseInputAdapter(){};
            mnBar.addMouseListener(adapter);
            mnBar.addMouseMotionListener(adapter);
	}
	public void internalFrameClosed( javax.swing.event.InternalFrameEvent e ) {
            mnBar.setVisible(true);    
            ven.HabilitarMenuBar();
        }       
	javax.swing.JMenuBar mnBar;
        SistemaRRHH ven;
    }